package com.pc.cloud.core;


import com.pc.cloud.services.SearchArgs;
import com.pc.cloud.services.SearchResults;
import org.apache.lucene.document.Document;

import java.util.Collection;

public interface SearchManager {
	public void init() throws Exception;	
	public SearchResults search(SearchArgs args) throws Exception;
	public void createIndex(Document doc) throws Exception;	
	public void createIndex(Collection<Document> docs, Collection<String> ids) throws Exception;
	public void delete(String id) throws Exception;
	public void delete(Collection<String> ids) throws Exception;
	public void notifyNewDocumentAdded() throws Exception;
	public void commit() throws Exception;
	public void close() throws Exception;
}
